package com.hz.house.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.hz.house.bean.entity.CustomerBean;
import com.hz.house.bean.entity.SystemMsg;

import java.util.List;

@Mapper
public interface CustomerMapper {

	CustomerBean getUser(String openid);
	
	int getUserMaxId();
	
	int registerUser(CustomerBean user);
	
	int updateSkOrUnionId(CustomerBean user);
	
	int updateUserInfo(CustomerBean user);
	
	String getSessionKey(Integer userid);

	CustomerBean getUserById(Integer userid);

	List<CustomerBean> getUserByOpenId(String openId);

	int sendSysMsg(SystemMsg msg);
	
	CustomerBean getCustomerById(int customerId);
	
	int bindUnionIdOnSellWxgzh(@Param("unionId")String unionId,@Param("openId")String openId);
	
	CustomerBean getUserByUnionId(@Param("unionId")String unionId);
	
	String getBuyHoseGzhOpenid(@Param("unionid")String unionid);
	
	int closeIknow(int customerId);
}
